# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-pytest-vcr
pkgver=1.0.2
pkgrel=1
pkgdesc="py.test integration with vcr.py"
url="https://github.com/ktosiek/pytest-vcr"
arch="noarch"
license="MIT"
depends="python3 py3-vcrpy"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
options="!check" # tests not compattible with py3-pytest >= 5.0"
source="$pkgname-$pkgver.tar.gz::https://github.com/ktosiek/pytest-vcr/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/pytest-vcr-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
29dceb51092d73f2190b89e82e88b59506591a35cfe4f141bb877c05420d67a8ab2f21f63c2630972c35697d01b242891917d1be19b14fdfa810c1799f8542c2  py3-pytest-vcr-1.0.2.tar.gz
"
